﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YouHP.Model.Group
{
    public class GroupInfo : IHydratable
    {
        public int Id { get; set; }
        public string GroupName { get; set; }
        public int GroupType { get; set; }
        public string GroupTypeName { get; set; }
        public int DiseaseId { get; set; }
        public int TreatmentId { get; set; }
        public int SymptomId { get; set; }
        public int LabcheckId { get; set; }
        public string Area { get; set; }            //圈子所在地区
        public int ProvinceId { get; set; }
        public int CityId { get; set; }
        public string ProvinceName { get; set; }
        public string CityName { get; set; }
        public string Keyword { get; set; }
        public string Introduction { get; set; }    // 圈子简介
        public string Logo { get; set; }            // 圈子头像
        public string Moderators { get; set; }      // 版主
        public int AppUserId { get; set; }          // 圈主 id
        public string AppUserName { get; set; }     // 圈主用户名
        public string AppUserAvatar { get; set; }   // 圈主头像
        public int UserNum { get; set; }            // 成员总数
        public int TopicNum { get; set; }           // 主题数
        public int ReplyNum { get; set; }           // 回复数
        public int PostNum { get; set; }            // 主题数+回复数
        public int LimitUser { get; set; }          // 限制人数
        public DateTime LastPostTime { get; set; }
        public string LastTopicTitle { get; set; }  //最后发表主题
        public int LastTopicId { get; set; }        //最后发表主题Id
        public string LastPostUser { get; set; }    //最后发表用户
        public int IsGoodGroup { get; set; }        //是否推荐圈子  
        public int Hits { get; set; }               //点击量
        public int IsValid { get; set; }
        public DateTime CreatTime {get; set;}      // 创建时间
        public int BrowserPermission { get; set; }  // 浏览权限
        public int JoinPermission { get; set; }     // 加入权限       
 
        public int Role { get; set; }               // 用户在圈子里的角色（在圈子列表中需要）
        public string TopicSortString { get; set; }   //论坛版块中帖子分类，对小圈子不使用
		
		public GroupInfo()
		{
            DiseaseId = TreatmentId = SymptomId = LabcheckId = LastTopicId = 0;
            GroupType = 0;  /*默认为自建圈子*/
            Hits = UserNum = TopicNum = PostNum = 0;
            LimitUser = 100;
            BrowserPermission = JoinPermission = 0;
            Logo = Area = Keyword = Introduction = GroupTypeName = GroupName = LastTopicTitle = LastPostUser = Moderators = "";
            LastPostTime = DateTime.Now;
            IsValid = 1;
            TopicSortString = "";
        }

        #region  IHydratable
        public bool Fill(System.Data.IDataReader dr)
		{
			return false;
		}
		#endregion
    }
}
